var totalPage = 0;
var totalCnt = 0;
var userLog = [];

$(document).ready(function () {
	showLoading();
	$('title', parent.document).html($('title').text());
	setBaseUrl();
	selectDate("startDate");
    selectDate("endDate");
    createTableHead("userLogThead", userLogTable, search);
    search();
});

function search(){
	$ajax('searchUserLog', 'userLogSearch', searchUserLog);
}

function searchUserLog(data) {
	totalPage = data && data.totalPage || 0;
	totalCnt = data && data.totalCnt || 0;
	userLog = data && data.userLog || [];
	createTableBody("userLogTbody", userLogTable, userLog);
	setTimeout(hideLoading, 500);
}